[id].vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adList[0]" v-if="adList[0]"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  15. <el-breadcrumb-item :to="{ path: '/specialList/7' }">本网招聘</el-breadcrumb-item>
  16. </el-breadcrumb>
  17. </div>
  18. </div>
  19. <div class="projectMoreBox">
  20. <div class="projectMoreTitle">社会保障在线网</div>
  21. <div class="projectMoreText">
  22. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  23. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  24. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  25. </div>
  26. </div>
  27. <!-- 资讯列表 -->
  28. <div class="newsList">
  29. <div class="inner">
  30. <div class="innerLeft">
  31. <div class="innerTitle">本网招聘</div>
  32. <ul class="list">
  33. <li v-for="(item, index) in newsList" :key="index">
  34. <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank">{{item.con_title}}</NuxtLink>
  35. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  36. </li>
  37. </ul>
  38. <!-- 分页器 -->
  39. <!-- <div class="pagination">
  40. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  41. prev-text="上一页" next-text="下一页" @change="changePage" />
  42. </div> -->
  43. </div>
  44. <div class="innerRight">
  45. <div class="rightMenuTitle">导航列表</div>
  46. <ul>
  47. <li v-for="(item, index) in bottomMenu" :key="index">
  48. <NuxtLink :to="`/speciaArticle/${item.id}`" target="_blank" v-if="item.id == pageId && item.id != 7" class="active">{{ item.name }}</NuxtLink>
  49. <NuxtLink :to="`/speciaArticle/${item.id}`" target="_blank" v-else-if="item.id != pageId && item.id != 7">{{ item.name }}</NuxtLink>
  50. <NuxtLink :to="`/specialList/${item.id}`" target="_blank" v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active">{{item.name}}</NuxtLink>
  51. <NuxtLink :to="`/specialList/${item.id}`" target="_blank" v-else-if="item.id == 7">{{item.name}}</NuxtLink>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. </div>
  57. <!-- 列表页广告二 -->
  58. <HomeTopTen :imgurl="adList[1]" v-if="adList[1]"></HomeTopTen>
  59. <!-- 页面底部 -->
  60. <HomeFoot1></HomeFoot1>
  61. </div>
  62. </template>
  63. <script setup>
  64. //1.页面依赖 start ---------------------------------------->
  65. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  66. import { ArrowRight } from '@element-plus/icons-vue'
  67. //获得跳转过来的id
  68. const route = useRoute();
  69. const pageId = route.params.id;
  70. const routeHref = route.href;
  71. //1.页面依赖 end ---------------------------------------->
  72. //2.页面数据 start ---------------------------------------->
  73. let adList = ref([]);
  74. //广告
  75. const {data:adData,error:adError} = requestData('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  76. if (adError.value) {
  77. console.error('广告列表请求失败:', adError.value);
  78. } else {
  79. if (adData.value && adData.value.data) {
  80. adList.value = adData.value.data;
  81. }
  82. }
  83. //左侧导航
  84. const bottomMenu = ref([]);
  85. async function getPageMenu() {
  86. const { data: mkdata, error: mkdataError } = requestData('/web/getWebsiteFooterCategory', {
  87. method: 'GET',
  88. query: {},
  89. });
  90. if (mkdataError.value) {
  91. //console.log()
  92. } else {
  93. if (mkdata.value) {
  94. bottomMenu.value = mkdata.value.data;
  95. }
  96. }
  97. }
  98. getPageMenu();
  99. //列表
  100. const newsList = ref([]);
  101. let newslists = async () => {
  102. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  103. method: 'GET',
  104. query: {
  105. 'fcat_id':pageId,
  106. },
  107. });
  108. console.log(9999)
  109. newsList.value = listData.data;
  110. console.log(newsList.value)
  111. }
  112. //获得列表
  113. newslists();
  114. //分页
  115. let changePage = (value) => {
  116. console.log("当前页码", value);
  117. page.value = value
  118. console.log(page.value);
  119. newslists()
  120. }
  121. //2.页面数据 end ---------------------------------------->
  122. //3 设置seo信息
  123. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  124. method: 'GET',
  125. query: {},
  126. });
  127. let seoTitle = setData.data.website_head.title;
  128. let seoDescription = setData.data.website_head.description;
  129. let seoKeywords = setData.data.website_head.keywords;
  130. useSeoMeta({
  131. title: seoTitle,
  132. meta: [
  133. { name: 'description', content: seoDescription },
  134. { name: 'keywords', content: seoKeywords }
  135. ]
  136. });
  137. //3.设置seo信息 end---------------------------------------->
  138. </script>
  139. <style lang="less" scoped>
  140. //导航条
  141. .breadcrumb {
  142. width: 100%;
  143. height: 22px;
  144. margin-bottom: 30px;
  145. font-family: Microsoft YaHei, Microsoft YaHei;
  146. font-weight: 400;
  147. font-size: 20px;
  148. color: #666666;
  149. line-height: 23px;
  150. text-align: left;
  151. font-style: normal;
  152. text-transform: none;
  153. :deep(.el-breadcrumb) {
  154. display: inline-block;
  155. vertical-align: -4px;
  156. }
  157. :deep(.el-breadcrumb__inner a),
  158. :deep(.el-breadcrumb__inner.is-link) {
  159. color: #666666;
  160. font-weight: 400;
  161. text-decoration: none;
  162. transition: var(--el-transition-color);
  163. }
  164. span {
  165. font-family: Microsoft YaHei, Microsoft YaHei;
  166. font-weight: 400;
  167. font-size: 20px;
  168. color: #666666;
  169. line-height: 23px;
  170. text-align: left;
  171. font-style: normal;
  172. text-transform: none;
  173. }
  174. span:hover {
  175. color: #666666;
  176. }
  177. .location {
  178. margin-right: 20px;
  179. width: 100px;
  180. height: 22px;
  181. font-family: Microsoft YaHei, Microsoft YaHei;
  182. font-weight: 400;
  183. font-size: 20px;
  184. color: #666666;
  185. line-height: 23px;
  186. text-align: left;
  187. font-style: normal;
  188. text-transform: none;
  189. }
  190. }
  191. // 资讯列表
  192. .newsList {
  193. width: 100%;
  194. height: 675px;
  195. margin-bottom: 70px;
  196. .inner {
  197. width: 1200px;
  198. .innerLeft {
  199. height: 65px;
  200. line-height: 65px;
  201. font-size: 22px;
  202. color: #028E21;
  203. font-weight: bold;
  204. }
  205. .innerTitle {
  206. font-size: 24px;
  207. }
  208. .innerLeft {
  209. height: 675px;
  210. float: right;
  211. >.list {
  212. height: 570px;
  213. margin-bottom: 70px;
  214. border-top: 1px solid #139602;
  215. >li {
  216. width: 790px;
  217. height: 60px;
  218. white-space: nowrap;
  219. overflow: hidden;
  220. text-overflow: ellipsis;
  221. line-height: 60px;
  222. //border-bottom: 1px solid #D9D9D9;
  223. >a {
  224. width: 360px;
  225. height: 26px;
  226. cursor: pointer;
  227. font-family: Microsoft YaHei, Microsoft YaHei;
  228. font-weight: 400;
  229. font-size: 20px;
  230. color: #333333;
  231. line-height: 26px;
  232. text-align: left;
  233. font-style: normal;
  234. text-transform: none;
  235. }
  236. }
  237. >li:hover>a {
  238. color: #139602;
  239. }
  240. >li:nth-child(1)::after,
  241. >li:nth-child(2)::after {
  242. content: "热";
  243. margin-left: 13px;
  244. background: #FF8A37;
  245. color: #fff;
  246. font-size: 14px;
  247. padding: 0px 2px;
  248. }
  249. >li:nth-child(5n) {
  250. border-bottom: 1px solid #D9D9D9;
  251. }
  252. }
  253. >.pagination {
  254. width: 800px;
  255. height: 34px;
  256. margin-left: 141px;
  257. display: flex;
  258. justify-content: center;
  259. margin: 0;
  260. // 鼠标移入后字体颜色
  261. .el-pagination::v-deep :hover {
  262. color: #139609;
  263. }
  264. .el-pagination.is-background::v-deep .btn-next,
  265. .el-pagination.is-background::v-deep .btn-prev {
  266. width: 70px;
  267. height: 34px;
  268. margin: 0px 10px;
  269. border-radius: 4px;
  270. }
  271. .el-pagination.is-background::v-deep .el-pager li {
  272. margin: 0px 10px;
  273. width: 38px;
  274. height: 34px;
  275. border-radius: 4px;
  276. }
  277. .el-pagination.is-background::v-deep .btn-next.is-active,
  278. .el-pagination.is-background::v-deep .btn-prev.is-active,
  279. .el-pagination.is-background::v-deep .el-pager li.is-active {
  280. background-color: #028e21;
  281. color: #fff;
  282. }
  283. }
  284. }
  285. .innerRight {
  286. width: 279px;
  287. .rightMenuTitle {
  288. width: 279px;
  289. height: 69px;
  290. font-size: 22px;
  291. font-weight: bold;
  292. line-height: 58px;
  293. text-align: center;
  294. color: #fff;
  295. background: url("../../static/special/projectMoreTitle.png") no-repeat;
  296. margin-bottom: 30px;
  297. }
  298. ul {
  299. li {
  300. a {
  301. border-left: 5px solid #028E21;
  302. margin-bottom: 15px;
  303. font-size: 22px;
  304. display: block;
  305. height: 61px;
  306. line-height: 61px;
  307. color: #333333;
  308. text-align: center;
  309. background: #FBFBFB;
  310. }
  311. }
  312. }
  313. .active {
  314. border-left: 0;
  315. border: 1px solid #028E21;
  316. background: #fff;
  317. }
  318. }
  319. }
  320. }
  321. //资讯推荐
  322. .zixuntuijian {
  323. width: 100%;
  324. height: 290px;
  325. margin-bottom: 70px;
  326. .innerLeft {
  327. // 左侧
  328. .zixunLeft {
  329. margin-right: 30px;
  330. }
  331. .zixunRight,
  332. .zixunLeft {
  333. float: left;
  334. width: 380px;
  335. height: 290px;
  336. // 标题部分
  337. >.title {
  338. width: 380px;
  339. }
  340. >.title>h3 {
  341. height: 36px;
  342. font-family: Source Han Sans, Source Han Sans;
  343. font-weight: bold;
  344. font-size: 24px;
  345. color: #000000;
  346. line-height: 28px;
  347. text-align: left;
  348. font-style: normal;
  349. text-transform: none;
  350. border-bottom: 1px solid #139602;
  351. }
  352. >.title>h3>span {
  353. float: right;
  354. width: 56px;
  355. height: 20px;
  356. line-height: 24px;
  357. font-weight: 400;
  358. font-size: 14px;
  359. color: #999999;
  360. font-style: normal;
  361. text-transform: none;
  362. }
  363. .photo_text {
  364. >li:first-child {
  365. width: 380px;
  366. height: 120px;
  367. margin-top: 20px;
  368. margin-bottom: 15px;
  369. position: relative;
  370. >img {
  371. float: left;
  372. width: 160px;
  373. height: 120px;
  374. }
  375. >div {
  376. float: left;
  377. width: 220px;
  378. height: 120px;
  379. padding-left: 15px;
  380. padding-top: 6px;
  381. box-sizing: border-box;
  382. background-color: #f6f6f6;
  383. >h5 {
  384. width: 200px;
  385. height: 54px;
  386. display: -webkit-box;
  387. -webkit-box-orient: vertical;
  388. -webkit-line-clamp: 2;
  389. overflow: hidden;
  390. text-overflow: ellipsis;
  391. word-break: break-all;
  392. font-family: Source Han Sans, Source Han Sans;
  393. font-weight: 500;
  394. font-size: 18px;
  395. color: #333333;
  396. line-height: 26px;
  397. text-align: left;
  398. font-style: normal;
  399. text-transform: none;
  400. }
  401. >p {
  402. width: 200px;
  403. height: 22px;
  404. line-height: 20px;
  405. position: absolute;
  406. bottom: 5px;
  407. right: 0;
  408. >span {
  409. display: inline-block;
  410. // width: 100px;
  411. height: 18px;
  412. font-family: Source Han Sans, Source Han Sans;
  413. font-weight: 400;
  414. font-size: 12px;
  415. color: #999999;
  416. text-align: left;
  417. line-height: 14px;
  418. font-style: normal;
  419. text-transform: none;
  420. }
  421. >span:last-child {
  422. // width: 90px;
  423. text-align: right;
  424. margin-left: 20px;
  425. }
  426. }
  427. }
  428. }
  429. >li {
  430. width: 380px;
  431. height: 25px;
  432. white-space: nowrap;
  433. overflow: hidden;
  434. text-overflow: ellipsis;
  435. font-family: PingFang SC, PingFang SC;
  436. font-weight: 500;
  437. font-size: 18px;
  438. color: #333333;
  439. line-height: 21px;
  440. text-align: left;
  441. font-style: normal;
  442. text-transform: none;
  443. margin-bottom: 10px;
  444. em {
  445. display: inline-block;
  446. width: 8px;
  447. height: 8px;
  448. border-radius: 8px;
  449. margin-right: 10px;
  450. background-color: #d9d9d9;
  451. }
  452. }
  453. >li:hover {
  454. color: #139602;
  455. }
  456. >li:hover em {
  457. background-color: #139602;
  458. }
  459. }
  460. }
  461. }
  462. .innerRight {
  463. width: 381px;
  464. height: 290px;
  465. background-color: #fbfbfb;
  466. >.title {
  467. width: 380px;
  468. height: 40px;
  469. line-height: 40px;
  470. border-top: 1px solid #139602;
  471. border-bottom: 1px solid #e7e7e7;
  472. >h4 {
  473. font-family: Microsoft YaHei, Microsoft YaHei;
  474. font-weight: 400;
  475. margin-left: 20px;
  476. font-size: 20px;
  477. color: #000000;
  478. text-align: left;
  479. font-style: normal;
  480. text-transform: none;
  481. >span {
  482. float: right;
  483. font-family: Microsoft YaHei, Microsoft YaHei;
  484. font-weight: 400;
  485. font-size: 14px;
  486. margin-right: 10px;
  487. color: #999999;
  488. text-align: left;
  489. font-style: normal;
  490. text-transform: none;
  491. }
  492. }
  493. }
  494. .rightList {
  495. height: 540px;
  496. margin-top: 20px;
  497. >li {
  498. height: 100px;
  499. margin-bottom: 10px;
  500. >img {
  501. width: 150px;
  502. height: 100px;
  503. }
  504. >p {
  505. width: 219px;
  506. height: 100px;
  507. padding-left: 12px;
  508. font-family: PingFang SC, PingFang SC;
  509. font-weight: 400;
  510. font-size: 16px;
  511. color: #333333;
  512. line-height: 22px;
  513. text-align: left;
  514. font-style: normal;
  515. text-transform: none;
  516. }
  517. >p:hover {
  518. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  519. }
  520. }
  521. }
  522. }
  523. }
  524. .projectMoreBox {
  525. width: 1200px;
  526. margin: 0 auto;
  527. height: 452px;
  528. margin-top: 20px;
  529. background: url("../../static/special/projectMoreBg.png") no-repeat;
  530. margin-bottom: 40px;
  531. .projectMoreTitle {
  532. color: #028E21;
  533. padding-top: 45px;
  534. font-size: 26px;
  535. padding-left: 204px;
  536. }
  537. .projectMoreText {
  538. padding: 40px;
  539. font-size: 20px;
  540. color: #333333;
  541. text-indent: 2em;
  542. line-height: 36px;
  543. }
  544. }
  545. </style>